﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Interfaces;
using KOSHI_FileDAO;
using Solvers;
using Solvers.Koshi;

namespace iface_KOSHI_solver
{
    class Program
    {
        static void Main(string[] args)
        {
            IKoshiDAO dao = new FileDAO("input.txt", "output.txt");

            KoshiSolver slv = new EilerSolver(dao.LoadTask());
            //KoshiSolver slv = new RungeKuttSolver(dao.LoadTask());
            //KoshiSolver slv = new AdamsSolver(dao.LoadTask());

            slv.Solve();

            if (slv.Solved)
            {
                dao.SaveSolution(slv.Solution);
            }
            else
            {
                Console.Write("Error!");
            }
        }
    }
}
